package com.hdax.dm.openfeign;

import com.hdax.api.item.ImageControApi;
import com.hdax.dm.entity.base.DmImage;
import com.hdax.dm.openfeign.factory.BaseFeignFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name="sc-base",fallbackFactory = BaseFeignFallBackFactory.class)
public interface BaseFeign extends ImageControApi {
    @PostMapping("/image/{itemId}")
    DmImage image(@PathVariable("itemId") Long itemId);

}
